package com.itheima.controller;

import com.itheima.common.R;
import com.itheima.domain.OmsOrderSetting;
import com.itheima.manager.OmsOrderManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class OmsOrderSettingController {
    @Autowired
    OmsOrderManager omsOrderManager;

    @GetMapping("/orderSetting/{id}")
    public R omsOrderSettingfindById(@PathVariable Integer id){
        return omsOrderManager.omsOrderSettingfindById(id);
    }

    @PostMapping("/orderSetting/update/{id}")
    public R omsOrderSettingUpdate(@PathVariable Integer id,
                                   @RequestBody OmsOrderSetting orderSetting){
        return omsOrderManager.omsOrderSettingUpdate(id,orderSetting);
    }
}
